MPT.addTmpl('friend_follow', function(_data) {

    var html = []; 

    html.push('<div class="contenter flw clrfix" id="contenter">');
    html.push('<div class="mpt a_friend_follow">');
    html.push('	<div class="leftside">');
    html.push('    	<input class="search e_search" type="text" placeholder="搜索关注..." />');
    html.push('        <div class="my_gz">');
    html.push('            <a class="hd e_hd e_my_follow active" href="javascript:;" title="我的关注">我的关注</a>');
    html.push('            <div class="bd e_group_list">');
    html.push('                <a href="javascript:;" title="全部关注"><em class="nub">0</em><span>全部关注</span></a>');
    html.push('                <a href="javascript:;" title="未分组关注"><em class="nub">0</em><span>未分组关注</span></a>');
    html.push('            </div>');
    html.push('        </div>');    
    html.push('        <div class="my_fs">');
    html.push('            <a class="hd e_hd e_follow_me" href="javascript:;" title="我的粉丝">我的粉丝</a>');
    html.push('        </div>');
    html.push('        <div class="all_gz">');
    html.push('            <a class="hd e_hd e_follow_each" href="javascript:;" title="相互关注">相互关注</a>');
    html.push('        </div>');
    html.push('    </div>');
    html.push('    <div class="rightside">');
    html.push('    	<div class="subnav_box clrfix e_group_op">');
    html.push('            <ul class="subnav">');
    html.push('                <li class="e_create_group" title="创建分组">创建分组</li>');
    html.push('                <li class="btn_off e_edit_group" title="编辑分组">编辑分组</li>');
    html.push('                <li class="btn_off e_del_group" title="删除分组">删除分组</li>');
    html.push('            </ul>');
    html.push('        </div>');
    html.push('        <div class="title_box clrfix">');
    html.push('            <div class="sort">');
    html.push('                <strong class="name e_sort" title="关注排序">关注排序');
    html.push('                    <div class="sort_list e_sort_list">');
    html.push('                        <a href="javascript:;" order="1" class="on" title="社区等级">社区等级</a>');
    html.push('                        <a href="javascript:;" order="2" title="最后登录时间">最后登录时间</a>');
    html.push('                        <a href="javascript:;" order="3" title="在线状态">在线状态</a>');
    html.push('                    </div>');
    html.push('                </strong>');
    html.push('            </div>');
    html.push('            <strong class="title e_title">全部</strong>');
    html.push('        </div>');
    html.push('        <div class="people_list e_friend_list">');
    html.push('        </div>');
    html.push('    	   <div class="attention">');
    html.push('            <div class="paging e_page">');
    html.push('            </div>');
    html.push('        </div>');
    html.push('    </div>');
    html.push('</div>');
    html.push('</div>');

    return html.join('');
});


MPT.addTmpl('one_follow_group', function(_data) {

    var html = [];

    html.push('<a href="javascript:;" gid="' + _data.groupID + '" title="' + _data.groupName + '">');
    html.push('<em class="nub">' + _data.counts + '</em>');
    html.push('<span>' + _data.groupName + '</span></a>');

    return html.join('');
});


MPT.addTmpl('one_follow', function(_data) {

    var html = [];

    var uid = _data.uid;
    var nickname = _data.nickname;
    var shield_status = Boolean(_data.shieldStatus);
    var is_online = Boolean(_data.online);
    var group_name = _data.groupName;
    var group_id = _data.groupID;

    var sysTime = _data.sysTime;
    var lastLoginTime = _data.lastLoginTime;
    var unlog_time = Util.unlogTime(sysTime, lastLoginTime);
    var grade = Util.transformGradeToIcon(_data.grade);

    var space_path = Util.spacePath(uid);
    var image_path = Util.avatarPath(uid, 33);

    var online_icon = is_online ? "online" : "";
    var display_gname = group_name.contains("未分组") ? "" : group_name;

    html.push('<dl class="people e_people" id="' + uid + '" nick="' + nickname + '">');
    html.push('    <dt class="head">');
    html.push('        <a href="' + space_path + '">');
    html.push('            <img src="' + image_path + '" alt="">');
    html.push('        </a>');
    html.push('    </dt>');
    html.push('    <dd class="content">');
    html.push('        <ul class="btn_box">');

    if (group_name != "关注我" && group_name != "相互关注") {
        html.push('            <li class="e_group_manage">');
        html.push('            </li>');
    }

    html.push('            <li><a class="close e_close" href="javascript:;" title="删除"></a></li>');
    html.push('        </ul>');
    html.push('        <h2 class="name_box ' + online_icon + '"><a class="name" href="' + space_path + '" title="' + nickname + '">' + nickname + '<em>【电信一区-傲视天下】</em></a></h2><!-- 状态为亮的话加上online否的删除 -->');
    html.push('        <p class="info">' + display_gname + '</p>');
    html.push('        <p class="grade">' + grade + '<strong class="time">' + unlog_time + '</strong></p>');
    html.push('    </dd>');
    html.push('</dl>');

    return html.join('');
});

